package com.clear.iterator;

public class Main {
    public static void main(String[] args) {
        int[] nums = {1,2,3,4,5};
        IntArray intArray = new IntArray(nums);
        MyIterator iterator = intArray.iterator();
        while (iterator.hashNext()){
            System.out.println(iterator.next());
        }
    }
}
